<template>
    <div>
        <div>
            <img :src="arr.pic" alt="">
            <p>{{arr.slogo}}</p>
            <p>{{arr.title}}</p>
            <p>评分：{{arr.raiting}}</p>
        </div>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    data() {
        return {
           arr:[] 
        };
    },

    mounted() {
        var {id} = this.$route.params
        console.log(id);
        axios.get(`http://122.112.161.135:4000/api/movieDetail?id=${id}`).then(res=>{
            console.log(res.data.res[0]);
            this.arr = res.data.res[0]

        })
    },

    methods: {
        
    },
};
</script>

<style  scoped>
p{
    font-size: 50px;
}
</style>